﻿
{template header}

{template sidebar}

<!-- artile begin -->
<div class="article">
{template title}









    <!--{if $type ==  'logistics'}-->

    <!-- 物流信息  -->
    <table cellpadding="1" cellspacing="1" border="0" width="100%">


        <tr>
            <td class="td1" width="30%" colspan="2">物流公司名称：</td>
            <td class="td2" colspan="3">
                <!-- class="required" 必填字段  -->
                <input type="text" size="40" name="title" placeholder="请输入模版名称" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

            </td>
            <td><a title="查询" class="btn btn-success save" href="{$this->url($c)}">查询</a></td>
        </tr>

        <tr>
            <th width="15%" colspan="2">公司名称</th>
            <th width="20%">联系人</th>
            <th width="15%">联系电话</th>
            <th width="15%" colspan="2">地址</th>


        </tr>

        <!--{if $result}-->
        <!--{loop $result $v}-->
        <tr>
            <td><input type="checkbox" name="id" value="{$v['id']}" /></td>
            <td>{$v['title']}</td>
            <td>{$v['type']}</td>
            <td>{$v['url']}</td>
            <td>{$v['address']}</td>
            <td class="operate"><a href="">删除</a></td>
        </tr>
        <!--{/loop}-->
        <!--{/if}-->

        <!--{if $pager}-->
        <!--分页开始-->
        <tr>
            <td colspan="6">
                <div class="page">{$pager}</div>
            </td>
        </tr>
        <!--分页结束-->
        <!--{/if}-->

        <!--{if $result == 0}-->
        <tr>
            <td colspan="6">没有数据记录！</td>
        </tr>
        <!--{/if}-->


        <tr>
            <td colspan="6" class="td4">
                <a title="添加物流公司" class="btn btn-success" href="{$this->url($c,'addLogistic')}">添加物流公司</a>
            </td>
        </tr>


    </table>


    <!--{/if}-->

    <!--{if $a == 'editLogistic' || $a == 'addLogistic'}-->

    <form method="post" action="{$this->url($c, 'saveLogistic', array('id' => $result['id']) )}">
        <table cellpadding="1" cellspacing="1" width="100%" border="0">
            <tr>
                <td class="td1" width="30%">公司名称：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="companyName" placeholder="请输入图片名称" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">联系人：</td>
                <td class="td2" colspan="4">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="contactPersonName" placeholder="请输入联系人姓名" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">联系电话：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="phone" placeholder="请输入联系电话" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">地  址：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="addr" placeholder="请输入地址" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">首重价格：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaPrice1" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重城市：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaCity1" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重公斤数：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaKgs1" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
            </tr>


            <tr>
                <td class="td1" width="30%">首重价格：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaPrice2" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重城市：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaCity2" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重公斤数：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaKgs2" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
            </tr>


            <tr>
                <td class="td1" width="30%">首重价格：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaPrice3" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重城市：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaCity3" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重公斤数：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaKgs3" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
            </tr>


            <tr>
                <td class="td1" width="30%">首重价格：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaPrice4" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重城市：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaCity4" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
                <td class="td1" width="30%">首重公斤数：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="15" name="metaKgs4" placeholder="" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />

                </td>
            </tr>

            <tr>
                <td colspan="3" class="td4">
                    <a class="btn btn-success save" href="{$this->url($c)}">保存</a>
                </td>
                <td colspan="3" class="td4">
                    <a class="btn btn-success save" href="{$this->url($c)}">重置</a>
                </td>
            </tr>
        </table>
    </form>
    <!--{/if}-->





</div>
<!-- artile end -->
{template footer}